﻿using System.Collections.Generic;
using System.Collections;
using DarrenSoft.Domain.DomainBase;
using DarrenSoft.Domain.Extends;
namespace DarrenSoft.DataAccessLayer.Interfaces
{
   
    /// <summary>
    /// 一般的数据库访问接口都要继承的基接口
    /// </summary>
    public interface IRepository<T> where T : Entity
    {
       
        T Get(object id);
        object Insert(T entity);
        bool Update(T entity, string primaryKeyValue);
        void Delete(object id);
        bool IsExistKey(Hashtable recordTable);
        IList<T> GetAll();
        List<T> Find(out int recordsCount,string condition, PagerBase info);
    }
}
